//package com.topisv.tms.web;
//
//import java.io.PrintWriter;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import net.sf.json.JSONObject;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//import com.topisv.tms.utils.WmsLog;
//import com.topisv.tms.utils.http.MessageThread;
//
//@Controller
//@RequestMapping(value = "/ordenoLogThread")
//public class OrdenoLogThreadController {
//	private static final Logger log = LoggerFactory.getLogger(ABCDE.class);
//	@Autowired
//	private MessageThread messageThread;
//	
//	@RequestMapping(value = "start")
//	public void start(HttpServletRequest request, HttpServletResponse response){
//		JSONObject json=null;
//		PrintWriter out=null;
//	    try {
//	    	json=new JSONObject();
//	    	out=response.getWriter();
//	    	log.info("开始启动上传日志线程");
//			messageThread.startSynchOrdenoLog();
//			log.info("启动上传日志线程成功");
//			out.println("线程启动成功");
//		} catch (Exception e) {
//			json.put("status", "0");
//			json.put("content", e.getMessage());
//			out.print(json.toString());
//			log.error("error",e);
//			
//		}
//	}
//	
//	@RequestMapping(value = "stop")
//	public void stop(HttpServletRequest request, HttpServletResponse response){
//		JSONObject json=null;
//		PrintWriter out=null;
//	    try {
//	    	json=new JSONObject();
//	    	out=response.getWriter();
//	    	log.info("开始停止上传订单操作日志");
//			messageThread.stopSynchOrdenoLog();
//			out.println("停止上传订单操作日志成功");
//		} catch (Exception e) {
//			json.put("status", "0");
//			json.put("content", e.getMessage());
//			out.print(json.toString());
//			log.error("error",e);
//			
//		}
//		
//	}
//
//}
